package base.day24;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class MyCharacterStream5 {
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new FileReader("E:\\java\\java project\\java-code\\a.txt"));

        char[] chars=new char[1024];
        int len;
        while ((len=br.read(chars)) !=-1){
            System.out.println(new String(chars,0,len));
        }
    }
}
